<?php

namespace App\Controller\Home;

use App\Controller\Example\BarsExample;
use App\Models\BarsModel;
use App\Models\Conn;
use Core\Common\Common;
use Core\Result\Result;

class Bars
{
    /**
     * 店铺列表
     * entry  token
     * return json
     * */
    public function barsList($data){
        $assemble = Common::assemble(new BarsExample(), $data);
        $conn = new Conn();
        $barsClassList = BarsModel::barsClassListInLngOrLat($conn,$assemble);
        Result::success($barsClassList);
    }
}